{% extends "base.html" %}

{% block title %}那一些童鞋们{% endblock %}
{% block content %}
<div class="container">
	<br/>
	<h2>那些有人写介绍的幸运儿们</h2>
	<br/>
	<div class="container-fluid">
		<div class="row">
		{% for student_now in student_true %}
			<div class="col-md-3">
				<a class="btn btn-link" role="button" 
					href="{% url 'student:look' student_now.seat_number %}">{{ student_now.name }}</a>
			</div>

			{% if forloop.counter|divisibleby:4 %}
				<br/><br/>
			{% endif %}

			{% empty %}
			<p><b>为什么没人写啊！！</b></p>

		{% endfor %}
		</div>
	</div>
		

	<br/><br/>
	<legend></legend>

	<h2>那些渴望拥有介绍的家伙</h2>
	<br/>

	<div class="container-fluid">
		<div class="row">
			
			{% for student_now in student_false %}
				<div class="col-md-3">
					<a class="btn btn-link" role="button"
						href="{% url 'student:editor' student_now.seat_number%}">{{ student_now.name }}</a>
				</div>

				{% if forloop.counter|divisibleby:4 %}
					<br/><br/><br/><br/>
				{% endif %}

				{% empty %}
				<p>目前所有人都有了介绍呢！<del>或者说没人注册？</del></p>

			{% endfor %}
		</div>
	</div>
	<br/><br/><br/>
	<p class="text-warning"><em>注意：只有本人才能编辑自己的同学录</em></p>
</div>
{% endblock %}
